package com.xmcc.service;

import com.xmcc.common.ResultJson;
import com.xmcc.dto.SysUserDto;
import com.xmcc.pojo.SysLogWithBLOBs;
import com.xmcc.pojo.SysRoleUser;
import com.xmcc.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserService {

    void insert(SysUserDto sysUserDto);

    void update(SysUserDto sysUserDto);

    void updatePassword(Integer id,String oldPassword,String newPassword);
    //错误的message 需要把当前user传递到控制层
    ResultJson login(String keyWord,String password);

    List<SysUser> queryAll();

    List<SysUser> queryByDeptId(Integer deptId);


    void recover(SysLogWithBLOBs sysLogWithBLOBs);
}

